<?php

//接口类用来约束方法
interface jiekou {

	public function get () {}

	public function set () {}

}


//代理类
class daili implements jiekou {

	public function get () {
		Factory::getDatabases('slave');
		$data = mysql_query('select * from a');
		return $data;
	}

	public function set () {
		Factory::getDatabase('master');
		$data = mysql_query('update a set name = 123');
		return $data;
	
	}

}


$proxy = new dali();


